// FireWallDlg.h : header file
//

#pragma once
#include "afxcmn.h"
#include "Process.h"


// CFireWallDlg dialog
class CFireWallDlg : public CDialog,public IProcessEvents
{
// Construction
public:
	CFireWallDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_FIREWALL_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedOk();
	CListCtrl m_ProcessList;
	afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
	void AddProcessListItem(ProcInfo pi);
	void DeleteProcessListItem(ProcInfo pi);
	virtual void OnProcessEvents(ProcessEvents eEvents,LPVOID postBuf,DWORD bufSize);
	afx_msg void OnBnClickedBtnNetcontrol();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
};
